Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a MSRV, use that toolchain by default. #22

Closed
wants to merge 1 commit into from

Conversation

jrvanwhy
Copy link
Owner

This PR defines a Minimum Supported Rust Version. It specifies that toolchain in rust-toolchain, so rustup will use that toolchain by default. The test-stable make action is removed, as it is now redundant.

We still need the nightly toolchain for Miri. Instead of specifying the nightly toolchain version via the command line, I created a new nightly/rust-toolchain.toml file that specifies the toolchain. The benefit is this makes rustup automatically install the nightly toolchain including Miri. This should stop the toil we currently have where every time the Rust toolchain is updated, everyone using make test has to manually install new toolchains and Miri. The downside is it's kinda ugly.

I set the MSRV to 1.70 so this doesn't conflict with tock#498.

I will send another PR that adds rust-version.workspace = true to all the Cargo.toml files in this repository; I didn't want to clutter this PR with those changes.

This PR defines a Minimum Supported Rust Version. It specifies that toolchain in `rust-toolchain`, so `rustup` will use that toolchain by default. The `test-stable` make action is removed, as it is now redundant.

We still need the nightly toolchain for Miri. Instead of specifying the nightly toolchain version via the command line, I created a new `nightly/rust-toolchain.toml` file that specifies the toolchain. The benefit is this makes `rustup` automatically install the nightly toolchain *including Miri*. This should stop the toil we currently have where every time the Rust toolchain is updated, everyone using `make test` has to manually install new toolchains and Miri. The downside is it's kinda ugly.

I set the MSRV to 1.70 so this doesn't conflict with tock#498.

I will send another PR that adds `rust-version.workspace = true` to all the `Cargo.toml` files in this repository; I didn't want to clutter this PR with those changes.
@jrvanwhy jrvanwhy closed this Aug 24, 2023
@jrvanwhy jrvanwhy deleted the check-msrv-with-toolchain-swap branch August 29, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant